import { request, METHOD } from '@/utils/request'
import { transformAbpListQuery } from '@/utils/abp'
export function getList(params) {
    return request('/api/identity-server/clients', METHOD.GET, transformAbpListQuery(params))
}

export function getClientDetail(id) {
    return request(`/api/identity-server/clients/${id}`, METHOD.GET)
}

export function addClient(params) {
    return request('/api/identity-server/clients', METHOD.POST, params)
}

export function updateClient(id, params) {
    return request(`/api/identity-server/clients/${id}`, METHOD.PUT, params)
}
export function delClient(params) {
    return request('/api/identity-server/clients', METHOD.DELETE, params)
}